import type { AppRouteModule } from '/@/router/types';

import { t } from '/@/hooks/web/useI18n';
import { LAYOUT } from '/@/router/constant';

const dashboard: AppRouteModule = {
  path: '/my',
  name: 'My',
  component: LAYOUT,
  redirect: '/my/demo',
  meta: {
    icon: 'simple-icons:about-dot-me',
    title: t('my'),
    orderNo: 100,
  },
  children: [
    {
      path: 'demo',
      name: 'Demo',
      component: () => import('/@/views/my/MyPage.vue'),
      meta: {
        // affix: true,
        title: t('demo'),
      },
    },
  ],
};

export default dashboard;
